import 'package:flutter/material.dart';

import 'MyDialog.dart';

class TestDialog extends StatefulWidget {
  @override
  _TestDialogState createState() => _TestDialogState();
}

class _TestDialogState extends State<TestDialog> {


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Test dialog'),
      ),
      body: InkWell(
        onTap: (){
          showDialog(
            context: context,
            builder: (context){
              return MyDialog();
            }
          );
        },
        child: Text('点我。。。', style: TextStyle(fontSize: 30),),
      )
    );
  }
}